-- GENERATED SPELL FOR [Shield Orb] --


function spell0_25502(pUnit, Event) --@Shadow Bolt,Self--
pUnit:FullCastSpellOnTarget(45680,pUnit)
pUnit:RegisterEvent('Sorts_25502', 579, 1)
end

function Sorts_25502(pUnit, Event)
local choix_sorts_25502 = math.random(0, 0)
if choix_sorts_25502 == 0 then
pUnit:RegisterEvent('spell0_25502', 1, 1)
end
end

function mob25502_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25502', math.random(1500, 3000), 1)
end

function mob25502_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25502_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25502_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25502, 1, 'mob25502_Action')
RegisterUnitEvent(25502, 2, 'mob25502_Leave')
RegisterUnitEvent(25502, 3, 'mob25502_Kill')
RegisterUnitEvent(25502, 4, 'mob25502_Die')
